package org.jianfa.learn.dubbo.provider.impl;

import org.jianfa.learn.dubbo.api.HelloService;

import java.util.concurrent.TimeUnit;

public class HelloServiceImpl implements HelloService {

    @Override
    public String sayHello(String name) {
        System.out.println("Client Request: " + name);
        try {
            TimeUnit.SECONDS.sleep(3);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "Hello " + name;
    }
}
